/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.pe.siass.dao;

import com.pe.siass.beans.ActorBean;
import java.util.List;
import org.apache.ibatis.session.SqlSession;

/**
 *
 * @author Hrengifo
 */
public class ActorDao {

    public ActorBean insertActor(ActorBean actorBean, SqlSession sqlSession) throws Exception{
         sqlSession.insert("insertActor", actorBean);
         return actorBean;
    }

    public int updateActor(ActorBean actorBean, SqlSession sqlSession) throws Exception{
         int aux = sqlSession.update("updateActor", actorBean);
         return aux;
    }

    public List<ActorBean> selectActor(ActorBean actorBean, SqlSession sqlSession) throws Exception{
         List<ActorBean> lstCasosBean = sqlSession.selectList("selectActor", actorBean);
        return lstCasosBean;
    }

}
